<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">

<ui:composition template="maintemplate.xhtml">
	<ui:define name="content">

		<h:form id="form">
			<p:messages id="messages" showDetail="true" autoUpdate="true"
				closable="true"></p:messages>
		</h:form>

		<body>
			<br />
			<center>
				<img src="login_banner.png" alt="" />
			</center>
			<h:form>
				<p:growl id="messages" />
				<center>
					<br />
					<h:panelGrid border="0" columns="1">
						<p:inputText id="name" value="#{loginBean.name}"></p:inputText>
						<p:watermark for="name" value="Benutzername"></p:watermark>
						<p:password id="password" value="#{loginBean.password}"></p:password>
						<p:watermark for="password" value="Passwort"></p:watermark>
					</h:panelGrid>
				</center>
				<center>
					<p:commandButton value="Login" action="#{loginBean.validateUser}"
						ajax="true"></p:commandButton>
				</center>
			</h:form>

			<br />
			<h:form id="PW">
				<br />
				<center>
					<p:commandLink id="forgotPW"
						actionListener="#{messageController.showInfoMessage('Bitte kontaktieren Sie den Administrator.')}">
						<h:outputText value="Passwort vergessen?"
							style="color: gray; font-size: 8pt" />
					</p:commandLink>

				</center>
			</h:form>
		</body>
	</ui:define>
</ui:composition>
</html>
